From: Jasper St. Pierre Date: Tue, 2 Oct 2012 22:17:16 +0000 (-0300) Subject: messageTray: Clean up and consolidate code for tween completion X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5655 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=be24ee435cce33d9ecc246566a259b9dc2291581;p=gnome-shell.git messageTray: Clean up and consolidate code for tween completion https://bugzilla.gnome.org/show_bug.cgi?id=685341 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 5e9214183..982940abe 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -2141,17 +2141,9 @@ const MessageTray = new Lang.Class({ }, _hideDesktopClone: function(now) { - if (now) { - this._desktopClone.destroy(); - this._desktopClone = null; - this._desktopCloneState = State.HIDDEN; - this._bottomMonitorGeometry = null; - return; - } - this._tween(this._desktopClone, '_desktopCloneState', State.HIDDEN, { y: 0, - time: ANIMATION_TIME, + time: now ? 0 : ANIMATION_TIME, transition: 'easeOutQuad', onComplete: Lang.bind(this, function() { this._desktopClone.destroy();